import request from '@/utils/request'

// 查询仲裁案件列表
export function listCase (query) {
  return request({
    url: '/manager/arbitration/case/page',
    method: 'get',
    params: query
  })
}

// 新增仲裁案件
export function saveArbitrationCase (data) {
  return request({
    url: '/manager/arbitration/case/saveArbitrationCase',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}

// 获取项目
export function getProject () {
  return request({
    url: '/manager/arbitration/case/getProject',
    method: 'get'
  })
}

// 获取附件上传说明
export function getProjectTypeRemark (data) {
  return request({
    url: '/arbitration/case/getProjectTypeRemark',
    method: 'get',
    params: data
  })
}

// 获取地区编码
export function getBaseRegion () {
  return request({
    url: '/manager/arbitration/case/getBaseRegion',
    method: 'get'
  })
}

// 获取案件信息
export function getCaseInfo (data) {
  return request({
    url: '/manager/arbitration/case/getCaseInfo',
    method: 'get',
    params: data
  })
}

// 获取案件信息
export function pay (data) {
  return request({
    url: '/manager/arbitration/case/pay',
    method: 'get',
    params: data
  })
}

// 获取文书信息
export function caseDocument (data) {
  return request({
    url: '/manager/arbitration/case/caseDocument',
    method: 'get',
    params: data
  })
}

// 文件管理
export function caseFile (data) {
  return request({
    url: '/manager/arbitration/case/caseFile',
    method: 'get',
    params: data
  })
}

// 补件通知
export function caseNotice (data) {
  return request({
    url: '/manager/arbitration/case/caseNotice',
    method: 'get',
    params: data
  })
}

// 补件申请
export function confirmCaseFile (data) {
  return request({
    url: '/manager/arbitration/case/confirmCaseFile',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}
